import { createApp } from 'vue'
//引入element-plus插件与样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import store from '@/store'
import router from './router'
//公共样式
import '@/assets/css/common.scss'
//配置element-plus国际化
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//Svg插件需要的配置代码
import 'virtual:svg-icons-register'
import component from '@/util/registerCom'
//颜色选择器
import ColorPicker from 'colorpicker-v3' // 注册组件
import 'colorpicker-v3/style.css' // 引入样式文件
const app = createApp(App)
app.use(store)
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(component)
app.use(ColorPicker)
app.mount('#app')
